import { Modal, Typography } from 'antd'
import { FC } from 'react'

interface Foo {
  onOk: () => void
  onCancel: () => void
  visible: boolean
}

const BaseModal: FC<Foo> = ({ onCancel, onOk, visible }) => {
  return (
    <Modal
      visible={visible}
      okText={'确认'}
      cancelText={'取消'}
      closable={false}
      onOk={onOk}
      onCancel={onCancel}
      destroyOnClose
    >
      <Typography.Title level={3}>umimi</Typography.Title>
    </Modal>
  )
}

export default BaseModal
